package com.relytosoft.mizar.media.analyze.api.entity.system;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.time.LocalDateTime;


/**
 * 人和组的信息
 *
 * @author lj
 */
@TableName("AY_PERSON_GROUP")
@ApiModel("AyPersonGroup")
public class AyPersonGroup {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
    @TableId(value = "ID", type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Integer id;

    /**
     * 人员ID
     */
    @ApiModelProperty(value = "人员ID")
    @TableField("PERSON_ID")
    private Integer personId;

    /**
     * 库ID
     */
    @ApiModelProperty(value = "库ID")
    @TableField("GROUP_ID")
    private Integer groupId;

    /**
     * 三方人像ID
     */
    @ApiModelProperty(value = "三方人像ID")
    @TableField("PLATFORM_PERSON_ID")
    private String platformPersonId;

    @ApiModelProperty("创建人ID")
    @TableField(value = "created_id", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    private int createdId;

    @ApiModelProperty("创建人")
    @TableField(value = "created_by", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    private String createdBy;

    @ApiModelProperty("创建时间")
    @TableField(value = "created_time", fill = FieldFill.INSERT, updateStrategy = FieldStrategy.NEVER)
    private LocalDateTime createdTime;

    /**
     * 三方平台人脸库ID
     */
    @ApiModelProperty(value = "三方平台库ID")
    @TableField(exist = false)
    private String plateformGroupId;


    public String getPlateformGroupId() {
        return plateformGroupId;
    }

    public void setPlateformGroupId(String plateformGroupId) {
        this.plateformGroupId = plateformGroupId;
    }

    public int getCreatedId() {
        return createdId;
    }

    public void setCreatedId(int createdId) {
        this.createdId = createdId;
    }

    public String getCreatedBy() {
        return createdBy;
    }

    public void setCreatedBy(String createdBy) {
        this.createdBy = createdBy;
    }

    public LocalDateTime getCreatedTime() {
        return createdTime;
    }

    public void setCreatedTime(LocalDateTime createdTime) {
        this.createdTime = createdTime;
    }


    /**
     * 获得主键
     */
    public Integer getId() {
        return this.id;
    }

    /**
     * 设置主键
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获得人员ID
     */
    public Integer getPersonId() {
        return this.personId;
    }

    /**
     * 设置人员ID
     */
    public void setPersonId(Integer personId) {
        this.personId = personId;
    }

    /**
     * 获得库ID
     */
    public Integer getGroupId() {
        return this.groupId;
    }

    /**
     * 设置库ID
     */
    public void setGroupId(Integer groupId) {
        this.groupId = groupId;
    }

    /**
     * 获得三方人像ID
     */
    public String getPlatformPersonId() {
        return this.platformPersonId;
    }

    /**
     * 设置三方人像ID
     */
    public void setPlatformPersonId(String platformPersonId) {
        this.platformPersonId = platformPersonId;
    }

    @Override
    public String toString() {
        return "AyPersonGroup{" +
                "id=" + id +
                ", personId=" + personId +
                ", groupId=" + groupId +
                ", platformPersonId='" + platformPersonId + '\'' +
                ", createdId=" + createdId +
                ", createdBy='" + createdBy + '\'' +
                ", createdTime=" + createdTime +
                ", plateformGroupId='" + plateformGroupId + '\'' +
                '}';
    }
}